package com.cql.common.core.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cql.common.core.base.BaseEntity;
import lombok.Data;

/**
 * @author cql
 */
@Data
@TableName("comment")
public class CommentDo extends BaseEntity {

    /**
     * 评论ID
     */
    @TableId(type = IdType.AUTO)
    private Long commentId;

    /**
     * 评论用户
     */
    private Long fromUser;

    /**
     * 被评论用户
     */
    private Long toUser;

    /**
     * 评论文章ID(朋友圈,菜谱,店家...)
     */
    private Long typeId;

    /**
     * 评论文章类型
     */
    private Integer type;

    /**
     * 层级(1:父级;2;子)
     */
    private Integer level;

    /**
     * 父级ID
     */
    private Long parentId;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 消息状态
     */
    private Integer status;


}
